package com.baizhi.cmfz.dao;

import com.baizhi.cmfz.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface UserDao {
    public User selectUser(User user);

    public int insertUser(User user);

    public  int deleteUser(int uid);

    public  int updateUser(User user);

    public List<User> selectByPageUser(@Param("offset")int offset,@Param("limit")int limit);
    public  int selectTotalCountUser();

    User selectOneUser(int id);

    User loginUser(@Param("username") String username);
    //查询用户所拥有的角色
    Set<String> selectRole(@Param("username") String  username);

    Set<String> selectResource(@Param("username") String  username);


    Set<String>selectRoleTest(@Param("id") Integer  id);

    Set<String>selectResourceTest(@Param("username")String username);
}
